package com.liyunc.demo.comp.id.generate.service.impl;

import com.liyunc.demo.comp.id.generate.service.SnowFlakeIdGenerator;
import com.liyunc.demo.comp.common.db.JpaIdStrategy;
import org.hibernate.jpa.spi.IdentifierGeneratorStrategyProvider;

import java.util.Map;

/**
 * @file SnowFlakeIdGeneratorStrategyProvider.java
 * @brief SnowFlakeIdGeneratorStrategyProvider
 * @details SnowFlakeIdGeneratorStrategyProvider
 * @version 1.0
 * @author liyuncong
 * @date 2022-04-08
 *
 * Edit History
 * ----------------------------------------------------------------------------
 * DATE                        NAME               DESCRIPTION
 * 2022-04-08                  liyuncong          Created
 *
 */
public class SnowFlakeIdentifierGeneratorStrategyProvider implements IdentifierGeneratorStrategyProvider {
    @Override
    public Map<String, Class<?>> getStrategies() {
        return Map.of(JpaIdStrategy.SNOW_FLAKE, SnowFlakeIdGenerator.class);
    }
}
